var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("BaseModuleUI"),
    a = e("GlobalParams"),
    i = e("AssetsManager"),
    r = e("RoleSoldierInfo"),
    s = cc._decorator,
    l = s.ccclass,
    c = s.property,
    d = (function (e) {
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            return (
                (t.blue_bg_node = null),
                (t.red_bg_node = null),
                (t.head_sprite = null),
                (t.revive_time_label = null),
                (t.match_player = null),
                t
            );
        }
        return (
            __extends(t, e),
            (t.prototype.showPlayerInfo = function (e) {
                (this.node.name = "game_player_" + e),
                    (this.revive_time_label.node.parent.active = !1),
                    (this.match_player = a.GlobalParams.MatchGamePlayer[e]),
                    (this.blue_bg_node.active = e % 2 == 0),
                    (this.red_bg_node.active = e % 2 != 0),
                    (this.head_sprite.spriteFrame = i.default
                        .getInstance()
                        .getGameHoreHeadFrame(r.default.Role_info[this.match_player.role_id].C_ID));
            }),
            (t.prototype.updatePlayerInfo = function (e) {
                (this.revive_time_label.node.parent.active = e > 0),
                    (this.revive_time_label.string = "" + Math.ceil(e / 10));
            }),
            __decorate([c(cc.Node)], t.prototype, "blue_bg_node", void 0),
            __decorate([c(cc.Node)], t.prototype, "red_bg_node", void 0),
            __decorate([c(cc.Sprite)], t.prototype, "head_sprite", void 0),
            __decorate([c(cc.Label)], t.prototype, "revive_time_label", void 0),
            __decorate([l], t)
        );
    })(n.default);
o.default = d;
